﻿@model Article
@Html.Extra()
@{
    Layout = "~/Views/Shared/OA/_Index.cshtml";
}
@section Main
{
    <div id="layMain">
        <div class="sumary">
            <h1>
                @Model.Title
            </h1>
            <p class="publish">
                <span>发布时间：@StringHelper.FormatDate(Model.PublishTime)</span><span>发布人：@Model.CreatorName</span>
            </p>
        </div>
        <div class="html">
            @if (Model.ArticleTexts.Count > 0)
            {
                foreach (var item in Model.ArticleTexts)
                {
                    @Html.Raw(item.Text)
                }
            }
        </div>
    </div>
}
<style>
    #layMain { overflow-y: auto; }
    .sumary { text-align: center; margin: 20px; padding-bottom: 10px; border-bottom: solid 1px #DADADA; }
    .sumary h1 { font-size: 20px; margin-bottom: 20px; }
    .sumary p span { margin-right: 20px; }
    .html { line-height: 30px; padding: 20px; font-size: 14px; }
    .html p { text-indent: 2em; margin-bottom: 10px; }
</style>
<script>

    jQuery(function ()
    {
        //滚动条设置
        $("#layMain").height($("body").height());
    });
</script>

